package com.CST.controller.zx;

import com.CST.common.api.ResultObject;
import com.CST.dto.zx.ProSelDTO;
import com.CST.dto.zx.ProjectDTO;
import com.CST.entity.cb.BdDepartment;
import com.CST.entity.cb.BdSysUser;
import com.CST.entity.zx.ZXAllocation;
import com.CST.entity.zx.ZX_Project;
import com.CST.entity.zx.ZxViewPerson;
import com.CST.service.cb.IBdDepartmentService;
import com.CST.service.cb.IBdSysUserService;
import com.CST.service.zx.*;
import com.CST.util.ExcelTransfer;
import com.CST.util.PageHelperTool;
import com.CST.vo.cb.BdDepartmentVO;
import com.CST.vo.cb.BdSysUserDeptCodeVO;
import com.CST.vo.cb.SysUserDeptVo;
import com.CST.vo.zx.EntryVo;
import com.CST.vo.zx.ProjectTemplateVo;
import com.CST.vo.zx.ProjectVo;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.ParseException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;

@RestController
@Api(tags = "可查看人管理")
public class ZX_ViewPersonController {

    @Autowired
    IZX_ViewPersonService viewPersonService;

    @GetMapping("/getZxViewPersonList")
    @ApiOperation(value = "可查看人列表")
    public ResultObject<List<ZxViewPerson>> getZxViewPersonList(String financialCode) throws ParseException {
        return ResultObject.success(viewPersonService.getZxViewPersonList(financialCode));
    }
}
